package com.pmcc.cj.repository;

import com.pmcc.cj.entity.CjAreaAgency;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by tomas on 2020/10/1.
 */
public interface CjAreaAgencyRepository extends JpaRepository<CjAreaAgency,String> {
    List<CjAreaAgency> findByParentIdAndDelFlag(String parentId,int flag);
    CjAreaAgency findByActivationCodeAndDelFlag(String activationCode,int flag);
    Page<CjAreaAgency> findAll(Specification<CjAreaAgency> spec, Pageable var1);
}
